package com.gxa.zhonglong.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @auther JJuventus
 * @date 2021/10/25 20:06
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "客户资料的实体")
public class Customer implements Serializable {

    @ApiModelProperty(name = "customerId",value = "序号",dataType = "Long",required = false)
    private Long customerId;

    @ApiModelProperty(name = "customerCardNumber",value = "会员卡号",dataType = "Long",required = true)
    private Long customerCardNumber;

    @ApiModelProperty(name = "customerName",value = "会员名称",dataType = "String",required = true)
    private String customerName;

    @ApiModelProperty(name = "customerVipType",value = "会员类型",dataType = "String",required = true)
    private String customerVipType;

    @ApiModelProperty(name = "customerPoints",value = "总积分",dataType = "Long",required = true)
    private Long customerPoints;

    @ApiModelProperty(name = "customerConsumeMoney",value = "消费总金额",dataType = "Long",required = true)
    private Long customerConsumeMoney;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "customerBirthday",value = "生日",dataType = "Timestamp",required = true)
    private Timestamp customerBirthday;

    @ApiModelProperty(name = "customerSex",value = "性别",dataType = "Boolean",required = true)
    private Boolean customerSex;

    @ApiModelProperty(name = "customerPhone",value = "联系电话",dataType = "String",required = true)
    private String customerPhone;

    @ApiModelProperty(name = "customerIDCard",value = "身份证号",dataType = "String",required = true)
    private String customerIDCard;

    @ApiModelProperty(name = "customerSubbranchName",value = "开卡门店",dataType = "String",required = true)
    private String customerSubbranchName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "customerRegTime",value = "开卡日期",dataType = "Timestamp",required = true)
    private Timestamp customerRegTime;
}
